/*
-----------------------------------------------------------------------------
This source file is part of FRAPPER
research.animationsinstitut.de
sourceforge.net/projects/frapper

Copyright (c) 2008-2009 Filmakademie Baden-Wuerttemberg, Institute of Animation 

This program is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the Free Software
Foundation; version 2.1 of the License.

This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
Place - Suite 330, Boston, MA 02111-1307, USA, or go to
http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
-----------------------------------------------------------------------------
*/

//!
//! \file "ParameterTabPage.cpp"
//! \brief Implementation file for ParameterTabPage class.
//!
//! \author     Stefan Habel <stefan.habel@filmakademie.de>
//! \author     Nils Zweiling <nils.zweiling@filmakademie.de>
//! \version    1.0
//! \date       29.05.2009 (last updated)
//!

#include "ParameterTabPage.h"


///
/// Constructors and Destructors
///


//!
//! Constructor of the ParameterTabPage class.
//!
//! \param parent The parent widget the created instance will be a child of.
//! \param parameterGroup The group of parameters represented by the tab page.
//!
ParameterTabPage::ParameterTabPage ( QWidget *parent, ParameterGroup *parameterGroup ) :
    QWidget(parent),
    m_parameterGroup(parameterGroup),
    m_isLoaded(false)
{
}


//!
//! Destructor of the ParameterTabPage class.
//!
//! Defined virtual to guarantee that the destructor of a derived class
//! will be called if the instance of the derived class is saved in a
//! variable of its parent class type.
//!
ParameterTabPage::~ParameterTabPage ()
{
}


///
/// Public Functions
///


//!
//! Returns the group of parameters the tab page represents.
//!
//! \return The group of parameters the tab page represents.
//!
ParameterGroup * ParameterTabPage::getParameterGroup ()
{
    return m_parameterGroup;
}


//!
//! Returns whether the widgets for editing the parameters in the parameter
//! group represented by the page have been created.
//!
//! \return True if the editing widgets have been created, otherwise False.
//!
bool ParameterTabPage::isLoaded ()
{
    return m_isLoaded;
}


//!
//! Sets the flag that states whether widgets for editing the parameters in
//! the parameter group have been created for the page to True.
//!
void ParameterTabPage::setLoaded ()
{
    m_isLoaded = true;
}
